{% extends "admin/pub/base.html" %}

{% block title %}
<title>订单管理</title>
{% endblock %}

{% block con-header %}
{% endblock %}

{% block content-body %}
<div class="widget am-cf">
  <div class="widget-head am-cf">
    <div class="widget-title  am-cf"> 订 单 号 : {{ orderobj.id }}</div></div>
  <div class="widget-body  am-fr">
    <div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
      <div class="am-form-group">
      </div>
    </div>



    <div class="am-u-sm-12">
      <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
        <thead>
          <tr>
            <th>订单时间</th>
            <th>用户</th>
            <th>总价</th>
            <th>总数</th>
            <th>状态</th>
            <th>收货信息</th>
          </tr>

        </thead>
        <tbody>

		<!--订单资料-->

          <tr class="gradeX">
            <td class="am-text-middle">{{ orderobj.addtime|date:'Y-m-d H:i:s' }}</td>
            <td class="am-text-middle">{{ orderobj.uid.username }}</td>
            <td class="am-text-middle">{{ orderobj.totalprice }}.00</td>
            <td class="am-text-middle">{{ orderobj.totalnum }}</td>
            <td class="am-text-middle">
                 {% if orderobj.status == 1 %}
                  待付款
                 {% elif orderobj.status == 2 %}
                  待发货
                 {% elif orderobj.status == 3 %}
                  已发货
                  {% elif orderobj.status == 4 %}
                  订单取消
                  {% endif %}
            </td>
            <td class="am-text-middle">{{ orderobj.address.adds }} {{ orderobj.address.addname }} {{ orderobj.address.addphone }}</td>


          </tr>


          <!-- more data --></tbody>
      </table>
    </div>
	<div class="am-u-sm-12">
      <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
        <thead>
          <tr>
            <th>订单内容:</th>
            <th>商品标题</th>
            <th>数量</th>
            <th>单价</th>
          </tr>

        </thead>
        <tbody>

		<!--订单详情资料-->
        {% for i in infos %}
          <tr class="gradeX">
            <td>
              <img src="{{ i.gid.pic }}" class="tpl-table-line-img" alt=""></td>
            <td class="am-text-middle">{{ i.gid.title }}</td>
            <td class="am-text-middle">{{ i.num }}</td>
            <td class="am-text-middle">{{ i.gid.price }}</td>

          </tr>
        {% endfor %}


          <!-- more data --></tbody>
      </table>
    </div>
    <div class="am-u-lg-12 am-cf">
      <div class="am-fr">
        <ul class="am-pagination tpl-pagination">

        </ul>
      </div>
    </div>
  </div>
</div>


{% endblock %}